<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="author" content="lijinbo" />
    <title>198-navigator-sendBeacon发送统计数据</title>
    <style></style>
    <script type="module" crossorigin src="../../../../static/js/198-index.html-05a1a9d4.js"></script>
    <link rel="modulepreload" crossorigin href="../../../../static/common/modulepreload-polyfill-3cfb730f.js">
  </head>

  <body>
    <p>
      相关文章参考：
      <a href="https://blog.csdn.net/u012193330/article/details/102778979" target="_blank">
        Navigator.sendBeacon 无阻塞发送统计数据
      </a>
    </p>
    <p>
      <a href="https://developer.mozilla.org/zh-CN/docs/Web/API/Navigator/sendBeacon" target="_blank">
        Navigator.sendBeacon()
      </a>
    </p>
    <div>
      <p>手动发送</p>
      <button id="btn1">DOMString类型发送</button>
      <button id="btn2">Formdata类型发送</button>
    </div>
    
  </body>
</html>
